package com.xpc.controller.utils;

import lombok.Data;

/**
 * Project：CourseProject
 * Date：2022/4/14
 * Time：3:35
 * Description：前后端数据协议
 *
 * @author 南北辰的键盘
 * @version 1.0
 */
@Data
public class R {

    private Boolean flag;
    private Object data;

    public R (){

    }

    public R(Boolean flag){
        this.flag = flag;
    }

    public R(Object data){
        this.data=data;
    }

    public R(Boolean flag,Object data){
        this.flag = flag;
        this.data = data;
    }
}
